<!DOCTYPE html>
<html lang="en">
<head>
    <meta http-equiv="content-type" content="text/html;charset=UTF-8">
    <title>Title</title>
</head>
<body>
<form action="http://www.baidu.com" id="f1">
    <input type="text">
    <a href="#" onclick="submitForm();">提交</a>
</form>

<script>
    function  submitForm() {
        document.getElementById('f1').submit();
    }
</script>
</body>
</html>